package com.ihr360.binlog.service;

import com.ihr360.binlog.service.fallback.AggrateServiceFallback;
import com.ihr360.commons.vo.ResultInfo;
import com.ihr360.entity.SyncedRosterSalaryChangeRecordEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author richey
 */
@FeignClient(name = "ihr360-cnb-aggregate-provider", fallback = AggrateServiceFallback.class)
public interface AggrateService {


    @GetMapping(value = "/payroll/staffsalary/adjust", produces = MediaType.APPLICATION_JSON_VALUE)
    ResultInfo adjustStaffSalary(@RequestBody SyncedRosterSalaryChangeRecordEntity entity);


}
